<?php
namespace app\common\model;

use think\Model;

class TeacherModel extends Model
{
    public function academic(){
        return $this->belongsTo('AcademicModel', 'academic_title','id');
    }

    public function collegeDetail(){
        return $this->belongsTo('CollegeModel', 'college','id');
    }

    public function specialtyDetail(){
        return $this->belongsTo('SpecialtyModel', 'specialty','id');
    }
}